package com.yangrd.airship.generator.support;

import com.yangrd.airship.generator.support.utils.HumpUtils;

import java.util.EnumMap;
import java.util.Map;

/**
 * @author yangrd
 * @date 2021/11/9
 */
public enum BasePageGeneratorConst {


    /**
     * BASE_PACKAGE_NAME
     */
    BASE_PACKAGE,

    /**
     * ENTITY_NAME
     */
    ENTITY_NAME,

    MODULE_NAME,

    CRATED_DATE,

    ID_TYPE;

    private static final Map<BasePageGeneratorConst, String> ENUM_2_NAME = new EnumMap<>(BasePageGeneratorConst.class);

    public String id() {
        return ENUM_2_NAME.computeIfAbsent(this, k -> HumpUtils.lineToHump(k.name()));
    }

}
